<script setup lang="ts">
definePageMeta({
  title: '首页',
  auth: false,
})

const userPinia = useUserPinia()
onMounted(() => {
  userPinia.setToken('123123')
  console.log(userPinia.getUserId)
  console.log(userPinia.getToken)
})
</script>

<template>
  <div>
    <NuxtLayout>
      <div class="flex">
        <NuxtLink to="/welcome">
          welcome
        </NuxtLink>
      </div>

      <div>
        <NuxtLink to="/default">
          default
        </NuxtLink>
      </div>
    </NuxtLayout>
  </div>
</template>
